package com.glela.platform.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.glela.platform.mapper.UserSetMapper;
import com.glela.platform.model.UserSet;
import com.glela.platform.service.UserSetService;

@Service("userSetServiceImpl")
public class UserSetServiceImpl implements UserSetService
{
	@Resource
	private UserSetMapper userSetMapper;

	/**
	 * 按条件查询用户设置
	 */
	@Override
	public UserSet selectUserSet(UserSet userset)
	{
		Long userId = userset.getUserId();
		return userSetMapper.selectUserSet(userId);
	}

	/**
	 * 按条件修改用户设置
	 * 
	 * @param userset
	 * @return
	 */
	@Override
	public int updateUserSet(UserSet userset)
	{

		return userSetMapper.updateUserSet(userset);
	}
}
